package com.bestcem.xm.qdes.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bestcem.xm.component.mybatis.mapper.XmCommonMapper;
import com.bestcem.xm.qdes.controller.param.QuestionLibPageParam;
import com.bestcem.xm.qdes.controller.vo.QdesQuestionlibVo;
import com.bestcem.xm.qdes.entity.QdesQuestionLib;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface QdesQuestionLibMapper extends XmCommonMapper<QdesQuestionLib> {
    /**
     * 根据id集合查询结果
     * @author chenglong.yue <chenglong.yue@idiaoyan.com>
     * @date 2022/8/12 17:48
     * @param param
     * @return java.util.List<com.bestcem.xm.qdes.controller.vo.QdesQuestionlibVo>
     */
    List<QdesQuestionlibVo> getPageResultByIds(@Param("param") List<String> param);

    /**
     * 先分页查询符合条件的id
     * @author chenglong.yue <chenglong.yue@idiaoyan.com>
     * @date 2022/8/15 15:28
     * @param page
     * @param param
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<java.lang.String>
     */
    Page<String> pageIds(Page page, @Param("param") QuestionLibPageParam param);

    /**
     * 问卷编辑-导入题目搜索，不带分页
     * @author chenglong.yue <chenglong.yue@idiaoyan.com>
     * @date 2022/8/18 15:07
     * @param param
     * @return java.util.List<java.lang.String>
     */
    List<String> getSearchIds(@Param("param") QuestionLibPageParam param);
}